import instance from "@/utils/request";

export function getDepartmentsInfo(){
    return instance({
        url: '/company/department'
    })
}


// 删除部门
export function delDepartmentApi(id){
    return instance({
        url: `/company/department/${id}`,
        method: 'DELETE'
    })
}

// 新增部门
export function addDepartmentApi(data){
    return instance({
        url: `/company/department`,
        method: 'post',
        data
    })
}